<div id="skip-link">
  <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
  <?php if ($main_menu): ?>
    <a href="#navigation" class="element-invisible element-focusable"><?php print t('Skip to navigation'); ?></a>
  <?php endif; ?>
</div>
<header class="am-topbar main-topbar">
  <div class="am-g-fixed main-topbar-wrapper">
    <h1 class="am-topbar-brand"><img src="./images/llp-logo.png" class="logo"></h1>
    <div class="am-collapse am-topbar-collapse">
      <ul class="am-nav am-nav-pills am-topbar-nav">
        <li class="am-active"><a href="#">首页</a></li>
        <li><a href="/">发现活动</a></li>
      </ul>
      <form role="search" class="am-topbar-form am-topbar-left am-form-inline">
        <div class="am-form-group inline-search-form">
          <input placeholder="搜索" class="am-form-field am-input-sm am-round search-field">
          <button type="submit" class="am-btn search-button"><span class="am-icon-search"></span></button>
          <!--.am-input-group-btn-->
        </div>
      </form>
      <div class="am-topbar-right">
        <div class="am-btn am-topbar-btn am-btn-sm am-icon-user"><a href="/login">登录</a><span>/</span><a href="/register">注册</a></div>
        <div class="am-btn am-topbar-btn am-btn-sm"><a href="/" class="am-btn-warning action-post-activity">+发布活动</a></div>
      </div>
    </div>
  </div>
</header>
<header class="am-topbar am-topbar-fixed-top-no">
  <div class="am-container">
    <div class="am-topbar-brand">
      <?php if ($logo): ?>
      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" id="logo" class="am-fl">
        <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
      </a>
      <?php endif; ?>

      <?php if ($site_name || $site_slogan): ?>
          <?php if ($site_name): ?>
            <h1 id="site-name" class="am-hide">
              <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>"><span><?php print $site_name; ?></span></a>
            </h1>
          <?php endif; ?>
          <?php if ($site_slogan): ?>
            <h2 id="site-slogan" class="am-hide"><?php print $site_slogan; ?></h2>
          <?php endif; ?>
      <?php endif; ?>
    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-secondary am-show-sm-only" data-am-collapse="{target: '#collapse-head'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="collapse-head">
      <!-- <ul class="am-nav am-nav-pills am-topbar-nav"> -->
      <?php print $main_menu ?>

      <div class="am-topbar-right">
        <a href="<?php print url('user/login') ?>" class="ctools-use-modal login-btn am-btn am-topbar-btn am-btn-xs">登录</a>
      </div>
    </div>

  </div>
</header>
<?php if($page['header']): ?>
  <?php print render($page['header']); ?>
<?php endif; ?>   
<div class="main-container am-container">
  <div class="am-g">  
    <section id="main" role="main" class="<?php print $main_content_classes; ?>">
      <?php print $messages; ?>
      <a id="main-content"></a>
      <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
      
      <?php if (!empty($tabs['#primary'])): ?><div class="tabs-wrapper clearfix"><?php print render($tabs); ?></div><?php endif; ?>
      <?php print render($page['help']); ?>
      <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
      <?php print render($page['content']); ?>
    </section> <!-- /#main -->
    
    <?php if ($page['sidebar_first']): ?>
      <aside id="sidebar-first" role="complementary" class="<?php print $sidebar_first_classes; ?>">
        <?php print render($page['sidebar_first']); ?>
      </aside>  <!-- /#sidebar-first -->
    <?php endif; ?>

    <?php if ($page['sidebar_second']): ?>
      <aside id="sidebar-second" role="complementary" class="<?php print $sidebar_second_classes; ?>">
        <?php print render($page['sidebar_second']); ?>
      </aside>  <!-- /#sidebar-second -->
    <?php endif; ?>
  </div>
</div>

<footer id="footer" role="contentinfo" class="am-footer">
  <hr class="am-article-divider" />
  <div class="am-container">
    <?php print render($page['footer']) ?>
    <?php print $feed_icons ?>
    
  </div>
</footer> <!-- /#footer -->
